Skip to content

Support for <GoogleOneTap/> - #3409

Merged
panteliselef merged 12 commits into
release/v4from
elef/backport-google-one-tap-to-v4
May 21, 2024
Merged

Support for <GoogleOneTap/>#3409
panteliselef merged 12 commits into
release/v4from
elef/backport-google-one-tap-to-v4

Conversation

@panteliselef

@panteliselef panteliselef commented May 21, 2024

Copy link
Copy Markdown
Contributor

Description

This PR backports into Core 1

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

…3379)

* feat(clerk-js,clerk-react): Replace mount with open for GoogleOneTap

* feat(clerk-js,clerk-react): Add changeset

* feat(clerk-js,clerk-react): Reuse initialized GIS instance

(cherry picked from commit 3d790d5)
…oogleOneTap (#3392)

* feat(clerk-js,clerk-react,nextjs,types): Drop experimental tag from GoogleOneTap

* feat(clerk-js,clerk-react,nextjs,types): Add changeset

* test(chrome-extension): Update snapshots

(cherry picked from commit d6a9b3f)
@changeset-bot

changeset-bot Bot commented May 21, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3895193

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@clerk/nextjs Minor
@clerk/clerk-react Minor
@clerk/clerk-js Minor
@clerk/chrome-extension Minor
@clerk/types Minor
@clerk/clerk-expo Patch
gatsby-plugin-clerk Patch
@clerk/remix Patch
@clerk/backend Patch
@clerk/fastify Patch
@clerk/localizations Patch
@clerk/clerk-sdk-node Patch
@clerk/themes Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@panteliselef
panteliselef force-pushed the elef/backport-google-one-tap-to-v4 branch from 1231228 to 8dfc2f4 Compare May 21, 2024 10:15
@panteliselef panteliselef changed the title Elef/backport google one tap to v4 Support for <GoogleOneTap/> May 21, 2024
@panteliselef
panteliselef marked this pull request as ready for review May 21, 2024 11:16
@panteliselef
panteliselef requested a review from a team as a code owner May 21, 2024 11:16
@panteliselef panteliselef self-assigned this May 21, 2024
})
.catch(err => {
if (isClerkAPIResponseError(err) && err.errors[0].code === 'external_account_not_found') {
return this.client?.signUp.create({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@panteliselef I think I've mentioned this before, but I'm double-checking that this signUp.create will trigger a Captcha functionality, and if the user has selected the "Smart" option it will try to find the clerk-captcha in the DOM. Thankfully, it won't break, because we fallback to "Invisible", but the fallback mechanism may change in the future, we should not depend on it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@panteliselef
panteliselef enabled auto-merge (squash) May 21, 2024 15:56
@panteliselef
panteliselef merged commit fcc349c into release/v4 May 21, 2024
@panteliselef
panteliselef deleted the elef/backport-google-one-tap-to-v4 branch May 21, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants